-- GENERATED SPELL FOR [Winterskorn Raider] --


function spell0_23665(pUnit, Event) --@Kick,n/a--
pUnit:FullCastSpellOnTarget(11978,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23665', 6339, 1)
end

function Sorts_23665(pUnit, Event)
local choix_sorts_23665 = math.random(0, 0)
if choix_sorts_23665 == 0 then
pUnit:RegisterEvent('spell0_23665', 1, 1)
end
end

function mob23665_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23665', math.random(1500, 3000), 1)
end

function mob23665_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23665_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23665_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23665, 1, 'mob23665_Action')
RegisterUnitEvent(23665, 2, 'mob23665_Leave')
RegisterUnitEvent(23665, 3, 'mob23665_Kill')
RegisterUnitEvent(23665, 4, 'mob23665_Die')
